$('.right-titleicon').on("click",function(e){
	projectVM.showMenulist()
})
projectVM = new Vue({
	el: "#content",
	data: {
		content:'',//检查项目
		status:'',//检查要求
		showAdd:false,
		showSelect:false,
		menuList:[
			{name:'新增',path:'list.html'},{name:'列表',path:'index.html'},
		],
		showSubmit:false,
		onStatus:'',
		selectText:'变压器1',
		result:'',
		showMenu:false,
		showMorebtn:false,
		advance:'',
		showAdd:false,
		show_popup:false,
		list:[{content:'外壳,手柄检查',status:'完好无损'}],
	},
	created: function() {},
	methods: {
		//确认添加
		confirmAdd(){
			if(this.content == ''){
				mui.toast('请输入检查项目')
				return
			}
			else if(this.status == ''){
				mui.toast('请输入检查要求')
				return
			}
			this.list.push(
				{
					content:this.content,
					status:this.status
				}
			)
			this.showAdd = false
		},
		//选择变压器类型
		chooseType(e){
			console.log(e,'===')
		},
		//返回上一页
		goBack(){
			mui.back()
		},
		//更多按钮
		showMore(){
			this.showMorebtn ? this.showMorebtn = false : this.showMorebtn = true
		},
		//阻止事件冒泡
		clickStop(){

		},
		//选择是否为值班人
		checkOnstatus(){
			console.log(this.onStatus)
			this.onStatus ? this.onStatus = false : this.onStatus =true
			
		},
		//点击菜单
		menuClick(e){
			if(e.name == '我值班'){
				this.onStatus? this.onStatus= false : this.onStatus=true
			}else{
				this.navTo(e.path)
			}
		},
		//左上角菜单显示隐藏
		showMenulist(){
			this.showMenu?this.showMenu=false:this.showMenu=true
		},
		navTo(e){
			mui.openWindow({
					url: e,
					id: e,
			});
			}
	},
	
	})